<script>
	$(document).ready(function(){
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
		$('#kd_prodi').change(function(){
			$('#kd_dosen').load(base_url+'prosedur/getDosenbyProdi/'+$('#kd_prodi').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px;">
	<input type="hidden" name="kd_mahasiswa" id="kd_mahasiswa" value="<?=$kd_mahasiswa?>">
	<div class="fitem" >
		<label style="width:120">NIM </label>:
		<input name="nim" size="15" required="true" value="<?=$nim?>" readonly>
	</div>
	<div class="fitem" >
		<label style="width:120px">Status Mahasiswa</label>:
		<select id="status" name="status">
			<option value="">- Pilih Status -</option>
			<option value="Mahasiswa Terdaftar" <?= $status == 'Mahasiswa Terdaftar'?'selected ="selected"':''; ?>>Mahasiswa Terdaftar</option>
			<option value="Mahasiswa Aktif" <?= $status == 'Mahasiswa Aktif'?'selected ="selected"':''; ?>>Mahasiswa Aktif</option>
			<option value="Mahasiswa Cuti" <?= $status == 'Mahasiswa Cuti'?'selected ="selected"':''; ?>>Mahasiswa Cuti</option>
			<option value="Lulus" <?= $status == 'Lulus'?'selected ="selected"':''; ?>>Lulus</option>
			<option value="Drop Out" <?= $status == 'Drop Out'?'selected ="selected"':''; ?>>Drop Out</option>
		</select></li>
	</div>	
	<div class="fitem" >
		<label style="width:120">Status Pekerjaan</label>:		
		<select id="status_kerja" name="status_kerja">
			<option value="">- Pilih Status -</option>
			<option value="Berkerja" <?=$status_kerja == 'Berkerja'?'selected ="selected"':''; ?>>Bekerja</option>
			<option value="Belum Bekerja" <?=$status_kerja == 'Belum Bekerja'?'selected ="selected"':''; ?>>Belum Bekerja</option>
			
		</select>
	</div>
	</div><div class="fitem" >
		<label style="width:120">Instansi </label>:
		<input name="instansi" size="30" required="true" value="<?=$instansi?>">
	</div>
</form>
	

